package com.villaday.idf.adapter3;

import android.content.Context;

import com.villaday.idf.R;
import com.villaday.idf.base.AbsRecyclerViewAdapter;
import com.villaday.idf.model2.Home_configurations;
import com.villaday.idf.model3.DataEntity;
import com.villaday.idf.model3.HomeDetailsEntity;

public class HomeTypeAdapter extends AbsRecyclerViewAdapter<HomeDetailsEntity.BodyBean.ScenesBean> {

    public HomeTypeAdapter(Context context) {
        super(context, R.layout.recycle_home_type);
    }

    @Override
    public void onBindHolder(AbsRecyclerViewAdapter.RecyclerViewHolder holder, HomeDetailsEntity.BodyBean.ScenesBean d, int position) {
        try {
            holder.bindSimpleDraweeView(R.id.sdv_ht, d.getMaterial().getUrl())
                    .bindTextView(R.id.tv_ht, d.getName());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
